package com.mc.code.service;

import com.mc.code.entity.*;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface UsersService {

    //根据用户编号查找用户信息
    List<CodeUsers> codeUsers (String userNo);

    void updateContact(CodeUsers codeUsers);

    String nickName(int promulgatorId);

    List<CodeUserId> userId(String userNo);

    void updateImage(CodeUsers user);

    List<CodeSkill> selectSkills();

    List<Skill> selectGoodSkills(String userNo);
//更新之前的删除
    void delSkill(Skill skill);
//更新的添加
    void insertSkill(Skill skill);


//    void recharge(double v);

    double selectBanlance(String userNo);

    void recharge(double v,String userNo);

    int selectPayCondition(String userNo);

    void updatePsd(String userNo, String psd);

    String findPsd(String userNo);

    List<CodeUsers> partakes(Integer itemNo);

    void updateCondition(Integer itemNo, String partakeNo,Integer partakeCondition);

    void insertUserCard(int userNo, String name, String idNum);

    //根据用户编号查找用户的信息
    CodeUsers findUserByUserNo(int userNo);

    List<userCard> name(String partakeNo);

    //————————————————————————————————————————后台

    //根据用户编号查找用户
    CodeUsers queryByUserNo(int userNo);

    //删除普通用户
    int deleteCodeUserByUserNo(int userNo);

    //更新封停用户
    int updateCodeUser(CodeUsers codeUsers);

    //更新未封停停用户
    int modifyCodeUser(CodeUsers codeUsers);

    //模糊查询普通用户
    List<CodeUsers> queryfaintnessUser(String type, String state, int currentPage, int pageCount);

    //获得总页数
    int getTotalPage(int pageCount,String state,String type);

    String payPsd(String userNo);

    String getOldPsd(String userNo);

    void pay(int userNo);


}
